package com.jlcloud.core.oauth2.constant;

/**
 * TokenConstant
 *
 * @author By: JlCloud <br>
 * @Package: com.jlcloud <br>
 * @CreateTime: 2024-12-03 21:45 <br>
 * @Copyright: 2021 www.jilianjituan.com Inc. All rights reserved. <br>
 * @Caution 注意：本内容仅限于冀联人力集团内部传阅，禁止外泄以及用于其他的商业目的 <br>
 */
public interface OAuth2TokenConstant {

	String HEADER_AUTHORIZATION = "Authorization";
	String HEADER_AUTHORIZATION_PREFIX = "Basic ";
	String TOKEN_HEADER = "JlCloud-Auth";
	String TENANT_HEADER = "Tenant-Id";
	String DEFAULT_TENANT_ID = "000000";
	String USER_HEADER = "User-Id";
	String DEPT_HEADER = "Dept-Id";
	String ROLE_HEADER = "Role-Id";
	String USER_TYPE_HEADER = "User-Type";
	String DEFAULT_USER_TYPE = "web";
	String USER_FAIL_KEY = "jlcloud:user::jlcloud:fail:";
	String CAPTCHA_CACHE_KEY = "jlcloud:auth::jlcloud:captcha:";
	String CAPTCHA_HEADER_KEY = "Captcha-Key";
	String CAPTCHA_HEADER_CODE = "Captcha-Code";
	String CAPTCHA_NOT_CORRECT = "验证码不正确";
	String TOKEN_NOT_CORRECT = "令牌授权不正确";
	String TOKEN_NOT_PERMISSION = "令牌授权已过期";
	String USER_NOT_FOUND = "用户名或密码错误";
	String USER_PHONE_NOT_FOUND = "用户手机未注册";
	String USER_HAS_NO_ROLE = "未获得用户的角色信息";
	String USER_HAS_NO_TENANT = "未获得用户的租户信息";
	String USER_HAS_NO_TENANT_PERMISSION = "租户授权已过期,请联系管理员";
	String USER_HAS_TOO_MANY_FAILS = "登录错误次数过多,请稍后再试";
	String DEFAULT_AVATAR = "https://jlfiles.oss-cn-zhangjiakou.aliyuncs.com/jobslink-img/head.svg";
	/**
	 * 请求HEADER中登录类型
	 */
	String LOGIN_TYPE_HEADER_KEY = "Login-Type";
	/**
	 * 使用客户端类型
	 */
	String BROWSE_CLIENT = "browse-client";
	/**
	 * 请求来源
	 */
	String REFERRER_SOURCE = "referrer-source";

}
